<?php
@session_start();
if (!isset($_SESSION['id_user']))
	//header('Location://localhost/firstclassapartmentscordoba/panel_control/login.php');
	//header('Location:http://firstclassapartment.com.ar/panel_control/login.php');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="es">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="Atenticaci&oacute;n | Panel de Control | First Class Apartments Cordoba Argentina">
		<meta name="author" content="Pulce Web Solutions - www.pulce.com.ar">
		<!--Para que las páginas se muestren correctamente y el zoom funcione bien en los dispositivos móviles-->
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="keywords" content="Departamento,Alquiler,Temporal,Cordoba,Capital,Argentina,First Class Apartments,Alojamiento,Turismo,Panel,Control,LogIn,Auenticaci&oacute;n">

		<title>Actualizar Galer&iacute;a de Im&aacute;genes | Panel de Control | First Class Apartments C&oacute;rdoba Argentina</title>
		
		<link href="../css/tooltipster.css" rel="stylesheet">
		<link rel="stylesheet" type="text/css" media="screen" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/smoothness/jquery-ui.css">
		<!-- elFinder CSS (REQUIRED) -->
		<link rel="stylesheet" type="text/css" media="screen" href="../elFinder/css/elfinder.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="../elFinder/css/theme.css">
		<?php
			include_once('../links.php');
			include_once('menu_bar.php');
		?>
		

		<!--BOOTSTRAP-->
		<script src="../js/bootstrap.min.js"></script>
		<!--CUSTOM JS-->
		<script src="../js/functions.js"></script>
		<!-- jQuery and jQuery UI (REQUIRED) -->
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
		<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"></script>

		<!-- elFinder JS (REQUIRED) -->
		<script type="text/javascript" src="../elFinder/js/elfinder.min.js"></script>

		<!-- elFinder translation (OPTIONAL) -->
		<script type="text/javascript" src="../elFinder/js/i18n/elfinder.es.js"></script>

		
		
		<script type="text/javascript">
		$(document).ready(function(){
			$('#btn-menu').on('click',function(e){
				$(location).attr('href','./index.php');
			});

			var elf = $('#elfinder').elfinder({
					url : '../elFinder/php/connector.php',  // connector URL (REQUIRED)
					lang: 'es',             // language (OPTIONAL)
					onlyMimes: ["image"], // display all images
					UTCDate: true,
					dateFormat: 'd/m/Y H:i:s',
					uiOptions : {
					    // toolbar configuration
					    toolbar : [
					        ['back', 'forward'],
					        // ['reload'],
					        // ['home', 'up'],
					        ['upload'],
					        ['open', 'download', 'getfile'],
					        ['info'],
					        ['quicklook'],
					        ['copy', 'cut', 'paste'],
					        ['rm'],
					        ['duplicate', 'rename', 'edit', 'resize'],
					        ['search'],
					        ['view']
					    ],

					    // directories tree options
					    tree : {
					        // expand current root on init
					        openRootOnLoad : true,
					        // auto load current dir parents
					        syncTree : true
					    },

					    // navbar options
					    navbar : {
					        minWidth : 150,
					        maxWidth : 500
					    },

					    // current working directory options
					    cwd : {
					        // display parent directory in listing as ".."
					        oldSchool : false
					    }
				},
				contextmenu : {
				    // navbarfolder menu
				    navbar : ['open', '|', 'copy', 'cut', 'paste', 'duplicate', '|', 'rm', '|', 'info'],

				    // current directory menu
				    cwd    : ['reload', 'back', '|', 'upload', 'mkdir', 'mkfile', 'paste', '|', 'info'],

				    // current directory file menu
				    files  : [
				        'getfile', '|','open', 'quicklook', '|', 'download', '|', 'copy', 'cut', 'paste', 'duplicate', '|',
				        'rm', '|', 'edit', 'rename', 'resize', '|', 'info'
				    ]
				},
				resizable:false,
				defaultView:'icons'
			}).elfinder('instance');
		});
 		</script>

	</head>
	<body class="panel">
		<div class="container">
			<div class="box-central">
				<div class="row">
					<div class="col-xs-5">
						<h1>Actualizar Galer&iacute;a de Im&aacute;genes</h1>
					</div>
					<div class="col-xs-2">
						<div id ="div-img">
						</div>
					</div>
				</div>
				<div id="elfinder"></div>
				<div id="div-msg" class="margin-top-1em" style="display:none">
				</div>
				<div class="row margin-top-1em">
					<div class="col-xs-4 col-xs-offset-4">
						<button id="btn-menu" class="btn btn-lg btn-danger" style="width:90%">Volver al Men&uacute; Principal</button>
					</div>
				</div>
			</div>
			<div id="div-result">
			</div>
		</div>
	</body>
</html>